home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17359 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.lang.c,comp.lang.c++,comp.unix.programmer
  2. Path: newsfeed.acns.nwu.edu!firewall!ceco!root
  3. From: John Hobson <jhobson@ceco.ceco.com>
  4. Subject: Re: itoa() in C for unix >>>
  5. X-Nntp-Posting-Host: disaster
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <DpwpuM.Iop@ceco.ceco.com>
  8. Sender: root@ceco.ceco.com (Operator)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: Commonwealth Edison
  11. References: <1996Apr12.121207@topaz>
  12. Mime-Version: 1.0
  13. Date: Mon, 15 Apr 1996 14:06:22 GMT
  14. X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3_U1 sun4c)
  15. X-Url: news:1996Apr12.121207@topaz
  16.  
  17. naderr@topaz.cqu.edu.au wrote:
  18. >Does anyone have or know of where I may obtain a itoa()
  19. >integer to string function in C/C++;  my Linux box
  20. >doesn't have one and I could use it right now.
  21.  
  22. Two solutions: use sprintf, or else look in Kernighan & Ritchie, where
  23. they give an itoa() function as an exercise.
  24.  
  25. -- 
  26. John Hobson             | The Mahatma Gandhi was once asked, "Mr 
  27. Unix Support Group         | Gandhi, what do you think of Western 
  28. Commonwealth Edison, Chicago, IL | Civilization?" He replied, "I think
  29. jhobson@ceco.ceco.com         | that it would be an excellent idea."
  30.  
  31.